.class public Lcom/waiqin365/lightapp/kehu/view/y;
.super Landroid/app/Dialog;


# instance fields
.field private a:Lcom/waiqin365/lightapp/kehu/view/CountDownView;

.field private b:Landroid/widget/TextView;

.field private c:Lcom/waiqin365/lightapp/kehu/view/aa;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const v0, 0x7f0d0005

    invoke-direct {p0, p1, v0}, Landroid/app/Dialog;-><init>(Landroid/content/Context;I)V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/view/y;)Lcom/waiqin365/lightapp/kehu/view/aa;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/y;->c:Lcom/waiqin365/lightapp/kehu/view/aa;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 2

    const v0, 0x7f0c005b

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/y;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/y;->a:Lcom/waiqin365/lightapp/kehu/view/CountDownView;

    const v0, 0x7f0c005c

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/y;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/y;->b:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/y;->a:Lcom/waiqin365/lightapp/kehu/view/CountDownView;

    new-instance v1, Lcom/waiqin365/lightapp/kehu/view/z;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/view/z;-><init>(Lcom/waiqin365/lightapp/kehu/view/y;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->setOnCountingListener(Lcom/waiqin365/lightapp/kehu/view/ac;)V

    return-void
.end method

.method public a(Lcom/waiqin365/lightapp/kehu/view/aa;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/view/y;->c:Lcom/waiqin365/lightapp/kehu/view/aa;

    return-void
.end method

.method public dismiss()V
    .locals 1

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/y;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-super {p0}, Landroid/app/Dialog;->dismiss()V

    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    invoke-super {p0, p1}, Landroid/app/Dialog;->onCreate(Landroid/os/Bundle;)V

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/y;->requestWindowFeature(I)Z

    const v0, 0x7f03000b

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/y;->setContentView(I)V

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/y;->setCancelable(Z)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/y;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v0

    const/4 v1, 0x0

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->dimAmount:F

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/y;->getWindow()Landroid/view/Window;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/view/Window;->setAttributes(Landroid/view/WindowManager$LayoutParams;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/y;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/view/Window;->addFlags(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/y;->a()V

    return-void
.end method

.method public show()V
    .locals 1

    invoke-super {p0}, Landroid/app/Dialog;->show()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/y;->a:Lcom/waiqin365/lightapp/kehu/view/CountDownView;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a()V

    return-void
.end method
